package com.jingzhi.count.controller;

import com.jingzhi.count.entity.MyResponse;
import com.jingzhi.count.mapper.TaskMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者： 张恒同
 * 时间： 2018/3/29   15:16
 * 描述： 任务
 */
@RestController
public class TaskController extends BaseController{

    @Autowired
    TaskMapper  mapper;

    @PostMapping(value = "/addTask.do")
    public ResponseEntity<MyResponse> addTask(@RequestParam(value = "productLineName", required = true) String productLineName,
                                              @RequestParam(value = "productLineId", required = true) String productLineId,
                                              @RequestParam(value = "teamId", required = true) String teamId,
                                              @RequestParam(value = "teamName", required = true) String teamName,
                                              @RequestParam(value = "planNum", required = true) int planNum){
        MyResponse response = new MyResponse();



        return new ResponseEntity<MyResponse>(response, HttpStatus.OK);
    }

}
